home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / The Hacks! / Spotlight Hack / resources / FatCodeResource.r < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-21  |  980 b   |  27 lines  |  [TEXT/CWIE]

  1. #include "MixedMode.r"
  2.  
  3. /*
  4. Use the project ProcInfo.π to determine the correct value for the ProcInfo field below.
  5.  
  6. A single '$' means a hex value.  You can also use the C format of 0x... if you want.
  7. Run ProcInfo.π to prove for yourself that a C routine (kCStackBased) that has no
  8. arguments and returns void has a ProcInfo of $1 or 0x1.
  9. Two dollar signs indicate a rez variable, as in $$Resource.  $$Resource tells rez 
  10. to read the resource fork of a file and return, as a string, the data of a resource 
  11. of a certain type and ID.
  12.  
  13.  
  14. Use type 'MWCW' as 'fdes'; if you want a fat resource.
  15. */
  16.  
  17.  
  18. type 'INIT' as 'sdes';
  19.  
  20. resource 'INIT' (0,sysheap) {
  21.     $5,                                                // 68K ProcInfo
  22.     $5,                                                // PowerPC ProcInfo
  23.     $$Resource("Spotlight 68K", '68K!', 128),        // Specify filename, type, and ID of resource
  24.                                                     //   containing 68k code
  25.     $$Resource("Spotlight PPC", 'PPC!', 128)        // Specify filename, type, and ID of resource
  26.                                                     //   containing a pef container
  27. };